
<script type="text/javascript">
	var temp=0;
	function show_menuC() {
		if (temp == 0) {
			document.getElementById('LeftBox').style.display = 'none';
			document.getElementById('RightBox').style.marginLeft = '0';
			document.getElementById('Mobile').style.background = 'url(../images/center.gif)';
	
			temp = 1;
		} else {
			document.getElementById('RightBox').style.marginLeft = '222px';
			document.getElementById('LeftBox').style.display = 'block';
			document.getElementById('Mobile').style.background = 'url(../images/center0.gif)';
	
			temp = 0;
		}
	}
	
	$(function() {

		$('.left02down01', '.left02').click(function () {
			if($(this).children('ul').length) {
				var $child = $(this).children('.left02down01_xia');
				if ($child.hasClass('.noneBox')) {
					$child.removeClass("noneBox");
				} else {
					$child.addClass("noneBox");
				}
				return false;
			} else {
				return true;
			}
		});
	});
	
</script>

<div class="left" id="LeftBox">
	<div class="left01">
		<div class="left01_right"></div>
		<div class="left01_left"></div>
		<div class="left01_c">内置管理员：root</div>
	</div>
    [#list menu.subComponents as component]
		[@buildNode child=component.subComponents parent=component /]
    [/#list]
</div>     
            
[#macro buildNode child parent]
	<div class="left02">
		<div class="left02top">
			<div class="left02top_right"></div>
			<div class="left02top_left"></div>
			<div class="left02top_c">${parent.title}</div>
		</div>
		[#if child?? && child?size gt 0]
			<div class="left02down">
			[#list child as t]
				[#if t.subComponents?? && t.subComponents?size gt 0]
					<div class="left02down01">
						<a href="javascript:void(0);">
							<div class="left02down01_img" style="background: url('../images/02.gif') repeat scroll 0% 0% transparent;"></div>${t.title}
						</a>
					</div>
					<div class="left02down01_xia noneBox" style="display: block;">
						<ul>
							[#list t.subComponents as three]
								<li class="[#if displayer.parser(three)] current[/#if]"><a href="${three.url}">&gt; ${three.title}</a></li>
							[/#list]
						</ul>
					</div>
				[#else]
					[#--不存在儿子节点,则不需要递归,只生成父亲节点数据--]
					<div class="left02down01 [#if displayer.parser(t)] current[/#if]"><a href="${t.url}" title="${t.description}" class="${t.css!''}"><div class="left02down01_img" style="background: url('../images/02.gif') repeat scroll 0% 0% transparent;"></div>${t.title}</a></div>
				[/#if] 
			[/#list]
			</div>
	    [/#if]
	</div>
[/#macro]
